import SENDAXIOS from '../config/sendAxios';
export const logListApi = (data) => SENDAXIOS('get', 'api/log/list', data);
export const getLoginToken = (data) => SENDAXIOS('posturl', 'oauth/token', data);
export const getUaamsgApi = (data) => SENDAXIOS('get', "api/uaa/user/info",data);
export const authDeptgetApi = (data) => SENDAXIOS('get', 'api/AuthDept/get', data);
export const getAuthListApi = (data) => SENDAXIOS('get', 'api/authAgent/get', data);
export const addAuthuserApi = (data) => SENDAXIOS('post', 'api/authAgent/add', data);
export const proxySyncApi = (data) => SENDAXIOS("get","api/employee/proxySync",data);
export const getAuthViewListApi = (data) => SENDAXIOS("get","api/authView/list",data);
export const authViewgSaveApi = (data) => SENDAXIOS('post', 'api/authView/save', data);
export const getuserDeviceApi = (data) => SENDAXIOS('get', 'api/userDevice/get', data);
export const getUaaListApi = (data) => SENDAXIOS('get', 'api/uaa/resource/list', data);
export const getDatas = (data) => SENDAXIOS('get','api/employee/authPerson/query',data);
export const synchronizeApi = (data) => SENDAXIOS("get","api/employee/synchronize",data);
export const getAuthDeleteApi = (data) => SENDAXIOS('get', 'api/authAgent/delete', data);
export const sysListDataApi = (data) => SENDAXIOS('get', 'api/dictionary/sysList', data);
export const dictionaryListApi = (data) => SENDAXIOS('get', 'api/dictionary/list', data);
export const getauthorityData = (data) => SENDAXIOS('get','api/role/authority/get',data);
export const updateAuthuserApi = (data) => SENDAXIOS('post', 'api/authAgent/update', data);
export const deleteuserDeviceData = (data) => SENDAXIOS('get','api/userDevice/delete',data);
export const upateuserDeviceData = (data) => SENDAXIOS('post','api/userDevice/update',data);
export const addDictionaryListApi = (data) => SENDAXIOS('post', 'api/dictionary/add', data);
export const getroleListApi = (data) => SENDAXIOS('get', "api/role/userAuthority/get",data);
export const getrelationLists = (data) => SENDAXIOS('get','api/employee/relation/list',data);
export const updataDictionaryApi = (data) => SENDAXIOS('post', 'api/dictionary/update', data);
export const saveRelationData = (data) => SENDAXIOS('post','api/employee/relation/save',data);
export const getroleAuthData = (data) => SENDAXIOS('get','api/role/authorityResource/get',data);
export const positionCheckApi = (data) => SENDAXIOS("get","api/attendance/position/check",data);
export const addRoleAuthorityeData = (data) => SENDAXIOS('post','api/role/accountRole/add',data);
export const adduserAuthorityData = (data) => SENDAXIOS('post','api/role/userAuthority/add',data);
export const dictionarydeleteApi = (id) => SENDAXIOS('delete', `api/dictionary/${id}/delete`,'');
export const getParentCodeApi = (data) => SENDAXIOS('get', "api/dictionary/parentCode/get",data);
export const chengeEmoperate = (data) => SENDAXIOS('get','api/employee/authPerson/operate',data);
export const deptgetByLoginAd = (data) => SENDAXIOS('get','api/employee/dept/getByLoginAd',data);
export const attentionDeleteApi = (data) => SENDAXIOS("get","api/employee/attention/delete",data);
export const createauthPerson = (data) => SENDAXIOS('post','api/employee/authPerson/create',data);
export const employeeauthPersonget = (data) => SENDAXIOS('get','api/employee/authPerson/get',data);
export const getByAdOrNmData = (data) => SENDAXIOS('get','api/employee/authPerson/getByAdOrNm',data);
export const deleteuserAuthorityeData = (data) => SENDAXIOS('post','api/role/userAuthority/delete',data);
export const getauthorityResourceData = (data) => SENDAXIOS('get','api/role/authorityResource/get',data);
// export const deleteauthorityResourceData = (data) => SENDAXIOS('get','api/role/authorityResource/delete',data);
export const deleteauthorityResourceData = (data) => SENDAXIOS('get','api/role/accountRole/delete',data);
export const updateAuthorityResourceData = (data) => SENDAXIOS('post','api/role/authorityResource/update',data);